package CSVTest;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.StringTokenizer;

public class ReadCSV{
	public static void main(String[] args){
		try{
			File csv=new File("D://writers.csv");
			
			BufferedReader br=new BufferedReader(new FileReader(csv));
			
			String line="";
			while((line=br.readLine())!=null){
				StringTokenizer st=new StringTokenizer(line,",");
				
				while(st.hasMoreTokens()){
					System.out.println(st.nextToken()+"/t");
					
				}
				System.out.println();
			}
			br.close();
		}catch(FileNotFoundException e){
			e.printStackTrace();
		}catch(IOException e){
			e.printStackTrace();
		}
	}
}